/**
 * 
 */
package org.mhz.ootw.util;

/**
 * @author Mahan
 *
 * 
 */
public final class Constants
{
    /**
     * Private constructor
     */
    private Constants()
    {
        
    }
        
    // Cache
    public static final String OCEAN_CACHE = "oceanCache";  
    
    // Request Mappings
    public static final String WELCOME = "welcometo";
    public static final String SHOW_CONTENTS = "showcontents";
    public static final String SEARCH_BY_TEXT = "searchByText";
    
    // Request parameters
    public static final String NODE_ID = "nodeId";
    public static final String SEARCH_TEXT = "searchText";
    public static final String SEARCH_ITEMS = "searchItems";
    
    // View names
    public static final String WELCOME_VIEW = "welcome";
    
    // Model names
    public static final String MENU_MODEL = "menu";
    
    // Service
    public static final String XML_MENU_SERVICE = "xmlMenuService";
    public static final String REPOSITORY_CONTENTS_SERVICE = "repositoryContentsService";
    public static final String TEXT_SEARCH_SERVICE = "textSearchService";
    
    // Repository (i.e. DAO)
    public static final String MENU_DAO = "menuDAO";
    public static final String REPOSITORY_CONTENTS_DAO = "repositoryContentsDAO";
    
    // Other resources
    public static final String SESSION_FACTORY = "sessionFactory";
    
    // Other constants
    public static final String OPEN_STATE = "open";
    public static final String READABLE_ITEM = "readableItem";
    public static final String READABLE_ITEM_NAME = "nameOfReadableItem";
    public static final String CONTENT = "content";
    public static final String ID = "id";
    public static final String PARENT = "parent";
    
    public static final String ELLIPSIS_END = "...";
    public static final int ELLIPSIS_END_LENGTH = 3;
    public static final int MAX_ELLIPSIS_LENGTH = 200;
    public static final int MAX_SEARCH_ROWS = 250;
    public static final String NON_THIN = "[^iIl1\\.,']";
    public static final String HIGHLIGHT_START_TAG = "<em>";
    public static final String HIGHLIGHT_END_TAG = "</em>";
}
